<!DOCTYPE html>
<html>
	<head>
		<title>CSS Test: flow-into on ordered lists that have the "reversed" and/or "start" HTML attribute set</title>
		<link rel="author" title="Mihai Balan" href="mibalan@adobe.com">
		<link rel="help" href="http://www.w3.org/TR/css3-regions/#properties" />
        <link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" />
		<meta name="flags" content="">
		<meta name="assert" content="The flow-into property can be applied to ordered lists. Lists extracted in a named flow should still honor the HTML5 'start' and 'reversed' list attributes.">
		<link rel="match" href="reference/extract-ordered-lists-in-regions-002-ref.html">
		<style>
		ol {
			margin: 0;
		}
		ol ol {
			color: blue;
		}
		#ordered-1 {
			flow-into: f1;
		}
		#r1 {
			flow-from: f1;
		}

		#ordered-2,
		#ordered-2 ol {
			flow-into: f2;
		}
		#r2 {
			flow-from: f2;
		}

		.ordered-3 {
			flow-into: f3;
		}
		#r3 {
			flow-from: f3;
		}
		.region {
			background-color: lightgray;
			margin: 1em;
			float: left;
			width: 17em;
			height: 15em;
		}
		</style>
	</head>
	<body>
		<p>This test passes if you see three gray rectangles with a number of lists inside each, as follows.</p>
		<p>The first rectangle should contain a black numbered list, with the numbering starting at 3. After the first item there should a be a blue numbered list, indented, with numbering starting at 10.</p>
		<p>The second rectangle should contain two numbered list. The first one should be black with numbering starting at 10, while the second should be blue and with the numbering starting at 0. They should both have the same indentation level.</p>
		<p>The third rectangle should contain a single numbered list, that's reversed, with the first item being numbered 5.</p>
		<ol id="ordered-1" start="3">
			<li>First ordered list, item 3
				<ol start="10">
					<li>Inner ordered list, item 10</li>
					<li>Inner ordered list, item 11</li>
				</ol>
			</li>
			<li>First ordered list, item 4</li>
			<li>First ordered list, item 5</li>
		</ol>
		<div class="region" id="r1"></div>

		<ol id="ordered-2" start="10">
			<li>Second ordered list, item 10</li>
			<li>Second ordered list, item 11
				<ol start="0">
					<li>Inner ordered list, item 0</li>
					<li>Inner ordered list, item 1</li>
					<li>Inner ordered list, item 2</li>
				</ol>
			</li>
			<li>Second ordered list, item 12</li>
		</ol>
		<div class="region" id="r2"></div>

		<ol class="ordered-3" reversed="true" start="5">
			<li>Reversed ordered list, item 5</li>
			<li>Reversed ordered list, item 4</li>
			<li>Reversed ordered list, item 3</li>
		</ol>
		<ol class="ordered-3" reversed="true">
			<li>Reversed ordered list, item 2</li>
			<li>Reversed ordered list, item 1</li>
		</ol>
		<div class="region" id="r3"></div>
	</body>
</html>